{% extends "base.html" %}
{% load thumbnails %}

{% block title %}Gallery{% endblock %}

{% block head %}
{% endblock %}

{% block content %}
<div>
	<div>
		<p>
			<b>Works:</b><br />
			{% comment %}<br />
			<a href="{% url artwerx.views.artwork_listByYear year=2008 %}">2008</a><br />
			<a href="{% url artwerx.views.artwork_listByYear year=2007 %}">2007</a><br />
			<a href="{% url artwerx.views.artwork_listByYear year=2006 %}">2006</a><br />
			<a href="{% url artwerx.views.artwork_listByYear year=2005 %}">2005</a><br />
			<a href="{% url artwerx.views.artwork_listByYear year=2004 %}">2004</a><br />
			<a href="{% url artwerx.views.artwork_listByYear year=2003 %}">2003</a><br />
			<a href="{% url artwerx.views.artwork_listByYear year=2002 %}">2002</a><br />
			<a href="{% url artwerx.views.artwork_listByYear year=2001 %}">2001</a><br />
			<a href="{% url artwerx.views.artwork_listByYear year=2000 %}">2000</a><br />
			<br />{% endcomment %}
			{% for tag in tag_list %}
			<a href="{% url tag_gallery tag %}">{{ tag }}</a><br />
			{% endfor %}
		</p>
	</div>
	<div>
		<p>
		<a href="{% url artwerx.views.artwork_single slug=object.slug %}">
                        {% with object.image_file|thumbnail:"360x256" as image_thumb %}
                        {% if image_thumb %}
                        <img alt="{{ object.title }}" src="{{ image_thumb.url }}" height="{{ image_thumb.thumbnail.size.1 }}" width="{{ image_thumb.thumbnail.size.0 }}" /><br />
                        {% else %}
                        <img alt="{{ object.title }}" src="http://media.bryanlewissaunders.org/{{ object.image_file }}"  width="{{ object.get_image_file_width }}" height="{{ object.get_image_file_height }}" /><br />
                        {% endif %}
                        {% endwith %}
                </a>
		<a href="{% url artwerx.views.artwork_single slug=object.slug %}">{{ object.title }}</a><br />
		{% include "artwerx/info.html" %}
		</p>
	</div>
</div>
{% endblock %}
